<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>

<jsp:include page="/static/common/common_header.jsp"/>

<script type="text/javascript" src="/static/js/accident.js"></script>

<html>
<head>
    <title>事故明细表</title>
</head>
<body>
    <!--初始化列表-->
    <table id="accident_datagrid"></table>

    <!-- 添加/编辑对话框 -->
    <div id="accident_dialog">
        <form id="accident_form" method="post">
            <input type="hidden"  name="id" >
            <div style="padding-top: 30px; margin-bottom: 20px">
                <input class="easyui-textbox" style="width: 80%" name="responsibility"
                       data-options="label:'责任指定',labelAlign:'right',labelWidth:100,
				 required:true">
            </div>
            <div style="margin-bottom: 20px">
                <input class="easyui-datetimebox" name="dealDate" style="width: 80%"
                       data-options="required:true,showSeconds:false,label:'处理时间',labelAlign:'right',labelWidth:100" >
            </div>
            <div style="padding-bottom: 20px">
                <input  class="easyui-textbox" style="width: 268px ;height: 97px" name="casesDescription"
                       data-options="label:'事故描述',labelAlign:'right',labelWidth:100,multiline:true,
				 required:true">
            </div>
            <div style="padding-bottom: 20px">
                <input class="easyui-textbox" style="width: 268px ;height: 97px" name="remark"
                       data-options="label:'备注',labelAlign:'right',labelWidth:100,multiline:true">
            </div>
        </form>

    </div>
    <!-- 查看对话框 -->
    <div id="accident_dialog_view">
        <form id="accident_form_view" method="post">
            <input type="hidden"  name="id" >
            <div style="padding-top: 30px; margin-bottom: 20px">
                <input class="easyui-textbox" style="width: 80%" name="responsibility"
                       data-options="label:'责任指定',labelAlign:'right',labelWidth:100">
            </div>
                <div style="padding-bottom: 20px">
                    <input class="easyui-textbox" style="width: 80%" name="dealDate"
                           data-options="label:'处理时间',labelAlign:'right',labelWidth:100">
            </div>
            <div style="padding-bottom: 20px">
                <input class="easyui-textbox" style="width: 268px ;height: 97px" name="casesDescription"
                       data-options="label:'事故描述',labelAlign:'right',labelWidth:100,multiline:true">
            </div>
            <div style="padding-bottom: 20px">
                <input class="easyui-textbox" style="width: 268px ;height: 97px" name="remark"
                       data-options="label:'备注',labelAlign:'right',labelWidth:100,multiline:true">
            </div>
        </form>
    </div>
<!--工具栏-->
    <div id="tb">

        <shiro:hasPermission name="accident:save">
            <a class="easyui-linkbutton" data-options="iconCls:'icon-audit',plain:true" data-cmd="handlerAccident">受理</a>
        </shiro:hasPermission>
        <shiro:hasPermission name="accident:save">
            <a class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true" data-cmd="discardAccident">丢弃</a>
        </shiro:hasPermission>
        <shiro:hasPermission name="accident:edit">
            <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true " id="btn_edit" data-cmd="editAccident">填写描述</a>
        </shiro:hasPermission>

        <shiro:hasPermission name="accident:edit">
            <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-codeOut',plain:true " id="btn_codeOut" data-cmd="reportAccident">上报审批</a>
        </shiro:hasPermission>

        <shiro:hasPermission name="accident:list">
            <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" data-cmd="reloadAccident">刷新</a>
        </shiro:hasPermission>
        &nbsp;&nbsp;&nbsp;
        <input id="searchBox">
        <select id="stateSearch" class="easyui-combobox" name="state" style="width:100px;">
            <option value=-1>选择状态</option>
            <option value=0>待受理</option>
            <option value=1>已受理</option>
            <option value=4>已丢弃</option>
            <option value=5>待处理</option>
        </select>
        <a id="stateSearch" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true" data-cmd="stateSearch"></a>
    </div>

<!--底部按钮-->
    <div id="bb">
        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-ok',plain:true" data-cmd="saveAccident">保存</a>
        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-cancel',plain:true" data-cmd="cancelAccident">取消</a>
    </div>

    <div id="accident_dialog_cancel_view">
        <a class="easyui-linkbutton" data-options="iconCls:'icon-cancel',plain:true" data-cmd="cancelAccident">取消</a>
    </div>
    <div id="cancel_view">
        <a class="easyui-linkbutton" data-options="iconCls:'icon-cancel',plain:true" data-cmd="cancelAccidentLoss">取消</a>
    </div>


    <!-- 添加/编辑对话框/配送单编辑 -->
    <div id="input_dialog">
        <form id="input_form" method="post">
            <input type="hidden"  name="id" >
            <input type="hidden"  name="lossItemId" >
            <div style="padding-top: 30px; margin-bottom: 20px">
                <input id="policySn" class="easyui-combobox" name="policySn" style="width: 80%"
                        data-options="label:'保险单号',labelAlign:'right',labelWidth:100,
				 required:true
" />
            </div>
            <div style="margin-bottom: 20px">
                <input id="customer_name" class="easyui-textbox" style="width: 80%" name="name"
                       data-options="label:'收款人名',labelAlign:'right',labelWidth:100,readonly:true,
				 required:true">
            </div>
            <div style="margin-bottom: 20px">
                <input class="easyui-textbox" style="width: 80%" name="bankcard"
                       data-options="label:'卡号',labelAlign:'right',labelWidth:100,
				 required:true">
            </div>
            <div style="margin-bottom: 20px">
                <input class="easyui-textbox" style="width: 80%" name="totalAccount"
                       data-options="label:'赔损总金额',labelAlign:'right',labelWidth:100,
				 required:true">
            </div>
            <div style="margin-bottom: 20px">
                <input class="easyui-textbox" style="width: 80%" name="totalNumber"
                       data-options="label:'损坏数量',labelAlign:'right',labelWidth:100,
				 required:true">
            </div>
        </form>
    </div>
    <!-- 添加/编辑对话框/配送单查看 -->
    <div id="input_dialog_view">
        <form id="input_form_view" method="post">
            <input type="hidden"  name="id" >
            <div style="padding-top: 30px; margin-bottom: 20px">
                <input class="easyui-textbox" style="width: 80%" name="policySn"
                       data-options="label:'保单编号',labelAlign:'right',labelWidth:100,
				 required:true">
            </div>
            <div style="margin-bottom: 20px">
                <input class="easyui-textbox" style="width: 80%" name="name"
                       data-options="label:'收款人名',labelAlign:'right',labelWidth:100,
				 required:true">
            </div>
            <div style="margin-bottom: 20px">
                <input class="easyui-textbox" style="width: 80%" name="bankcard"
                       data-options="label:'卡号',labelAlign:'right',labelWidth:100,
				 required:true">
            </div>
            <div style="margin-bottom: 20px">
                <input class="easyui-textbox" style="width: 80%" name="totalAccount"
                       data-options="label:'赔损总金额',labelAlign:'right',labelWidth:100,
				 required:true">
            </div>
            <div style="margin-bottom: 20px">
                <input class="easyui-textbox" style="width: 80%" name="totalNumber"
                       data-options="label:'损坏数量',labelAlign:'right',labelWidth:100,
				 required:true">
            </div>
        </form>
    </div>
    <!--底部按钮-->
    <div id="input_bar">
        <a  class="easyui-linkbutton" data-options="iconCls:'icon-ok',plain:true" data-cmd="saveAccidentLoss">保存</a>
        <a class="easyui-linkbutton" data-options="iconCls:'icon-cancel',plain:true" data-cmd="cancelAccidentLoss">取消</a>
    </div>

    <%--保险单号对话框--%>
    <div id="polySnDialog">
        <table id="polySnDatagrid"></table>
    </div>
</body>
</html>
